const path = require('path');
const resolve = (dir) => { return path.join(__dirname,dir)}

module.exports = {
    publicPath:"/", // 公共路径
    indexPath: 'index.html', // 相对于打包路径index.html的路径

    chainWebpack: (config) => { 
        config.resolve.symlinks(true); // 修复热更新失效
        config.resolve.alias // 添加别名
        .set('@',resolve('src'))
        .set('@assets',resolve('src/assets'))
    }
}